﻿namespace KrasDD.Utils
{
    public class CacheHelper
    {
        public static IDistributedCache Cache => AppContainer.Cache;
        public static string GetTableInfoKey(string tableName)
        {
            var key = $"TableSchemeInfo:{tableName.ToLower()}";
            return key;
        }

        public static string GetPermissionInfoKey(string currentUserId)
        {
            var key = $"UserPermission:{currentUserId}";
            return key;
        }



    }
}
